#index的views.py的myvariable函数
from django.shortcuts import render,redirect
from django.http import HttpResponse
from django.urls import reverse
def yun(request):
    return HttpResponse("hello,Django")
def jia(request,sum1,sum2):
    return HttpResponse(f'sum is {sum1+sum2}')
def post(request, post_id):
    return HttpResponse('for post'+str(post_id))
def viewliu(request):
    return render(request,'index.html')
def yunlin_view(request):
    a=reverse('myapp:yun')
    return redirect(a)